<script setup>
const props = defineProps({
  data: {
    type: Array,
    default: () => {
      return []
    }
  },
  options: {
    type: Object,
    default: () => {
      return {}
    }
  }
})
</script>

<template>
  <div style="width: 100%; height: 100%">
    <dv-border-box7 class="my-box7" :color="['#0749a3', '#4195d2']">
      <div class="dom-box">
        <div class="dom-title">设备今日数据量</div>
        <div class="dom-content">
          <div class="chart-content">
            <div class="machine5-content">
              <div class="header">
                <span>当前设备总数量：</span>
                <span class="number">{{ props.options.number }}</span>
              </div>
              <div class="body">
                <ps-chart2 :option="props.options" />
              </div>
            </div>
          </div>
        </div>
      </div>
    </dv-border-box7>
  </div>
</template>

<style scoped lang="scss">
@font-face {
  font-family: 'UnidreamLED';
  src: url(../../../assets/font/DS-Digital/DS-DIGI-1.ttf); /***兼容ie9***/
}

.machine5-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  .header {
    line-height: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.8);
    .number {
      font-size: 36px;
      color: #0e94ea;
      font-family: UnidreamLED;
      font-weight: bold;
    }
  }
  .body {
    flex: 1;
  }
}
.dom-box {
  display: flex;
  flex-direction: column;
  height: 100%;

  .dom-title {
    height: 40px;
    background-color: rgba(14, 58, 119, 0.6);
    color: #2ca7e2;
    line-height: 40px;
    padding-left: 20px;
  }

  .dom-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .chart-content {
    flex: 1;
    overflow: hidden;

    height: calc(100% - 70px);
  }
}
</style>
